package com.jingyanzi.privilege.domain;

import java.util.List;

public class UserDO extends BaseDO implements java.io.Serializable {

	/**
	 * baseDO里面
	 * 
	 *  id 数据库主键
	 *  code 唯一编码
	 *  pCode 父级编码
	 *  sortNum 排序值 
	 * 
	 */
	
	/**
	 * 
	 */
	private static final long serialVersionUID = -135378085215623380L;

   /**
    * 员工号
    */
    private String workNo;
 /**
    * 真实姓名
    */
    private String realName;

   /**
    * 电话号码
    */
    private String mobile;
    
    /**
     * 头像
     */
    private String avatar;
    
    /**
     * 登陆次数
     */
    private Integer loginCount;
    /**
     * 旧密码
     */
    private String oldPassword;
    /**
     * 用户密码
     */
    private String password;

    /**
     * 是否激活（第一次登陆）
     */
	private Integer activation;
    
    /**
     * 最后登陆时间
     */
    private String lasttimestr;

    /**
     * 角色对象
     */
    private List<RoleDO> roleDOList;
    
    private Integer[] roleIds;

   
	public String getWorkNo() {
		return workNo;
	}


	public void setWorkNo(String workNo) {
		this.workNo = workNo;
	}


	public String getRealName() {
		return realName;
	}


	public void setRealName(String realName) {
		this.realName = realName;
	}

	public String getMobile() {
		return mobile;
	}


	public void setMobile(String mobile) {
		this.mobile = mobile;
	}

	public String getAvatar() {
		return avatar;
	}


	public void setAvatar(String avatar) {
		this.avatar = avatar;
	}


	public List<RoleDO> getRoleDOList() {
		return roleDOList;
	}


	public void setRoleDOList(List<RoleDO> roleDOList) {
		this.roleDOList = roleDOList;
	}

	public String getLasttimestr() {
		return lasttimestr;
	}


	public void setLasttimestr(String lasttimestr) {
		this.lasttimestr = lasttimestr;
	}


	public Integer getLoginCount() {
		return loginCount;
	}


	public void setLoginCount(Integer loginCount) {
		this.loginCount = loginCount;
	}


	public Integer[] getRoleIds() {
		return roleIds;
	}


	public void setRoleIds(Integer[] roleIds) {
		this.roleIds = roleIds;
	}
	
	public Integer getActivation() {
		return activation;
	}


	public void setActivation(Integer activation) {
		this.activation = activation;
	}

	public String getOldPassword() {
		return oldPassword;
	}


	public void setOldPassword(String oldPassword) {
		this.oldPassword = oldPassword;
	}


	public String getPassword() {
		return password;
	}


	public void setPassword(String password) {
		this.password = password;
	}


	public UserDO() {
		super();
		this.realName = "李赓大帝";
		this.mobile = "13983272841";
		this.roleIds = new Integer[]{2,3,4,5};
	}

}
